* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #333;
    min-height: 100vh;
}

a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 80px;
    background-color: #222;
    border-radius: 5px;
    transition: 1s;
    box-shadow: 0 5px 15px #111;
    overflow: hidden;
}

a span {
    position: absolute;
    width: 30px;
    height: 40px;
    background-color: white;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    transform: translateX(-35px) translateY(5px);
    transition: 0.5s;
}

a span::before {
    position: absolute;
    content: "";
    top: -7px;
    width: 100%;
    height: 5px;
    background-color: white;
    box-shadow: 20px -5px 0px #222, 10px -5px 0px white;
    transition: 0.5s;
}

a:hover span {
    transform: scale(1.5) rotate(60deg) translateX(-20px) translateY(50px);
}

a:hover span::before {
    transform: rotate(-70deg) translateY(-20px);
}

a text {
    position: absolute;
    right: 20%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: 0.5s;
}

a.active text {
    transform: translateX(-50px) scale(0);
}

a.active span {
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(45deg) translateX(-20px) translateY(10px);
}

a.active span::before {
    opacity: 0;
}

a.active {
    background-color: skyblue;
}